package com.gmall.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig_Simple {

    public static String QUEUE_1 = "Queue_1";
    @Bean
    public Queue queue_1(){
        return QueueBuilder.durable(QUEUE_1).build();
    }
}
